﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YbxLibrary.entity.indata
{
    public class T2401in
    {
        public static String JYBH = "2401";
        public Mdtrtinfo mdtrtinfo { set; get; }
        public List<Diseinfo> diseinfo { set; get; }
        public class Mdtrtinfo
        {
            /// <summary>
            /// 人员编号
            /// </summary>
            public string psn_no { get; set; } 

            /// <summary>
            /// 险种类型
            /// </summary>
            public string insutype { get; set; } 

            /// <summary>
            /// 联系人姓名
            /// </summary>
            public string coner_name { get; set; } 

            /// <summary>
            /// 联系电话
            /// </summary>
            public string tel { get; set; } 

            /// <summary>
            /// 开始时间
            /// </summary>
            public string begntime { get; set; } 

            /// <summary>
            /// 就诊凭证类型
            /// </summary>
            public string mdtrt_cert_type { get; set; } 

            /// <summary>
            /// 就诊凭证编号
            /// </summary>
            public string mdtrt_cert_no { get; set; } 

            /// <summary>
            /// 医疗类别
            /// </summary>
            public string med_type { get; set; } 

            /// <summary>
            /// 住院号
            /// </summary>
            public string ipt_no { get; set; } 

            /// <summary>
            /// 病历号
            /// </summary>
            public string medrcdno { get; set; } 

            /// <summary>
            /// 主治医生编码
            /// </summary>
            public string atddr_no { get; set; } 

            /// <summary>
            /// 主诊医师姓名
            /// </summary>
            public string chfpdr_name { get; set; } 

            /// <summary>
            /// 入院诊断描述
            /// </summary>
            public string adm_diag_dscr { get; set; } 

            /// <summary>
            /// 入院科室编码
            /// </summary>
            public string adm_dept_codg { get; set; } 

            /// <summary>
            /// 入院科室名称
            /// </summary>
            public string adm_dept_name { get; set; } 

            /// <summary>
            /// 入院床位
            /// </summary>
            public string adm_bed { get; set; } 

            /// <summary>
            /// 住院主诊断代码
            /// </summary>
            public string dscg_maindiag_code { get; set; } 

            /// <summary>
            /// 住院主诊断名称
            /// </summary>
            public string dscg_maindiag_name { get; set; } 

            /// <summary>
            /// 主要病情描述
            /// </summary>
            public string main_cond_dscr { get; set; } 

            /// <summary>
            /// 病种编码
            /// </summary>
            public string dise_codg { get; set; } 

            /// <summary>
            /// 病种名称
            /// </summary>
            public string dise_name { get; set; } 

            /// <summary>
            /// 手术操作代码
            /// </summary>
            public string oprn_oprt_code { get; set; } 

            /// <summary>
            /// 手术操作名称
            /// </summary>
            public string oprn_oprt_name { get; set; } 

            /// <summary>
            /// 计划生育服务证号
            /// </summary>
            public string fpsc_no { get; set; } 

            /// <summary>
            /// 生育类别
            /// </summary>
            public string matn_type { get; set; } 

            /// <summary>
            /// 计划生育手术类别
            /// </summary>
            public string birctrl_type { get; set; } 

            /// <summary>
            /// 晚育标志
            /// </summary>
            public string latechb_flag { get; set; } 

            /// <summary>
            /// 孕周数
            /// </summary>
            public string geso_val { get; set; } 

            /// <summary>
            /// 胎次
            /// </summary>
            public string fetts { get; set; } 

            /// <summary>
            /// 胎儿数
            /// </summary>
            public string fetus_cnt { get; set; } 

            /// <summary>
            /// 早产标志
            /// </summary>
            public string pret_flag { get; set; } 

            /// <summary>
            /// 计划生育手术或生育日期
            /// </summary>
            public string birctrl_matn_date { get; set; } 

            /// <summary>
            /// 病种类型编码
            /// </summary>
            public string dise_type_code { get; set; } 

            /// <summary>
            /// 字段扩展
            /// </summary>
            public Exp_content exp_content { get; set; } 
            public class Exp_content {
                /// <summary>
                /// 住院类型
                /// </summary>
                public string ipt_type { get; set; } 

                /// <summary>
                /// 就诊人群类型
                /// </summary>
                public string mdtrt_grp_type { get; set; } 

                /// <summary>
                /// 外伤标志
                /// </summary>
                public string trum_flag { get; set; } 

                /// <summary>
                /// 涉及第三方标志
                /// </summary>
                public string rel_ttp_flag { get; set; } 
            }

            /// <summary>
            /// 参保地医保区划
            /// </summary>
            public string insuplc_admdvs { get; set; } 

            /// <summary>
            /// 就医地医保区划
            /// </summary>
            public string mdtrtarea_admvs { get; set; } 
        }

        public class Diseinfo
        {
            /// <summary>
            /// 人员编号
            /// </summary>
            public string psn_no { get; set; } 

            /// <summary>
            /// 诊断类别
            /// </summary>
            public string diag_type { get; set; } 

            /// <summary>
            /// 主诊断标志
            /// </summary>
            public string maindiag_flag { get; set; } 

            /// <summary>
            /// 诊断排序号
            /// </summary>
            public string diag_srt_no { get; set; } 

            /// <summary>
            /// 诊断代码
            /// </summary>
            public string diag_code { get; set; } 

            /// <summary>
            /// 诊断名称
            /// </summary>
            public string diag_name { get; set; } 

            /// <summary>
            /// 入院病情
            /// </summary>
            public string adm_cond { get; set; } 

            /// <summary>
            /// 诊断科室
            /// </summary>
            public string diag_dept { get; set; } 

            /// <summary>
            /// 诊断医生编码
            /// </summary>
            public string dise_dor_no { get; set; } 

            /// <summary>
            /// 诊断医生姓名
            /// </summary>
            public string dise_dor_name { get; set; } 

            /// <summary>
            /// 诊断时间
            /// </summary>
            public string diag_time { get; set; } 
        }
    }
}
